home *** CD-ROM | disk | FTP | other *** search
/ Spawn Figure Collection / spawn collection cd.iso / setup / data1.cab / Program_Executable_Files / Collection.dir / 00015_ÉrÉÖÅ[ÉÇÅ[Éhï-é¶Ç‹ÇÌÇË.ls < prev    next >
Encoding:
Text File  |  1998-01-19  |  7.5 KB  |  280 lines

  1. on dispcollection
  2.   global lseries, gnowseries, gnowtitle, gnowgroup, gcomment, gtextresult, gcdpath
  3.   se(2, "#1")
  4.   set ls to getAt(lseries, gnowseries)
  5.   set lt to getAt(the ltitle of ls, gnowtitle)
  6.   set lg to getAt(the lgroup of lt, gnowgroup)
  7.   set the text of field "Series" to the pseries of ls
  8.   set the text of field "Title" to the ptitle of lt
  9.   set the text of field "Comment" to the pcomment of lg
  10.   setenablegroup()
  11.   if the pprotect of lg = "1" then
  12.     newBitmap(gcdpath & "Graphics\" & the pbitmap of lg, 45)
  13.   else
  14.     newBitmap(the pathName & "Graphics\" & the pbitmap of lg, 45)
  15.   end if
  16. end
  17.  
  18. on setenablegroup
  19.   global gnowseries, gnowtitle, lseries, ltitle, lenablegroup
  20.   set ls to getAt(lseries, gnowseries)
  21.   set lt to getAt(the ltitle of ls, gnowtitle)
  22.   set lenablegroup to [0, 0, 0, 0, 0]
  23.   repeat with t = 1 to count(the lgroup of lt)
  24.     set lg to getAt(the lgroup of lt, t)
  25.     case the pgroup of lg of
  26.       "1":
  27.         setAt(lenablegroup, 1, 1)
  28.       "2":
  29.         setAt(lenablegroup, 2, 1)
  30.       "3":
  31.         setAt(lenablegroup, 3, 1)
  32.       "4":
  33.         setAt(lenablegroup, 4, 1)
  34.       "5":
  35.         setAt(lenablegroup, 5, 1)
  36.     end case
  37.   end repeat
  38. end
  39.  
  40. on nextseries
  41.   global gnowseries, gnowtitle, gnowgroup, lseries
  42.   set gnowtitle to 1
  43.   set gnowgroup to 1
  44.   set ls to getAt(lseries, gnowseries)
  45.   set lt to getAt(the ltitle of ls, gnowtitle)
  46.   set gnowseries to gnowseries + 1
  47.   if gnowseries > count(lseries) then
  48.     set gnowseries to 1
  49.   end if
  50. end
  51.  
  52. on previousseries
  53.   global gnowseries, gnowtitle, gnowgroup, lseries
  54.   set gnowtitle to 1
  55.   set gnowgroup to 1
  56.   set gnowseries to gnowseries - 1
  57.   if gnowseries < 1 then
  58.     set gnowseries to count(lseries)
  59.   end if
  60. end
  61.  
  62. on nexttitle
  63.   global lseries, gnowseries, gnowtitle, gnowgroup
  64.   set gnowgroup to 1
  65.   set ls to getAt(lseries, gnowseries)
  66.   set lt to getAt(the ltitle of ls, gnowtitle)
  67.   set gnowtitle to gnowtitle + 1
  68.   if gnowtitle > count(the ltitle of ls) then
  69.     nextseries()
  70.   end if
  71. end
  72.  
  73. on previoustitle
  74.   global lseries, gnowseries, gnowtitle, gnowgroup
  75.   set gnowgroup to 1
  76.   set ls to getAt(lseries, gnowseries)
  77.   set lt to getAt(the ltitle of ls, gnowtitle)
  78.   set gnowtitle to gnowtitle - 1
  79.   if gnowtitle < 1 then
  80.     previousseries()
  81.     set ls to getAt(lseries, gnowseries)
  82.     set gnowtitle to count(the ltitle of ls)
  83.   end if
  84. end
  85.  
  86. on nextgroup
  87.   global lseries, gnowseries, gnowtitle, gnowgroup
  88.   set ls to getAt(lseries, gnowseries)
  89.   set lt to getAt(the ltitle of ls, gnowtitle)
  90.   set gnowgroup to gnowgroup + 1
  91.   if gnowgroup > count(the lgroup of lt) then
  92.     set gnowgroup to 1
  93.   end if
  94. end
  95.  
  96. on previousgroup
  97.   global lseries, gnowseries, gnowtitle, gnowgroup
  98.   set ls to getAt(lseries, gnowseries)
  99.   set lt to getAt(the ltitle of ls, gnowtitle)
  100.   set gnowgroup to gnowgroup - 1
  101.   if gnowgroup < 1 then
  102.     set gnowgroup to count(the lgroup of lt)
  103.   end if
  104. end
  105.  
  106. on replylistnum num
  107.   global lsortedt, gnowlistptr, gnowseries, gnowtitle, gnowgroup
  108.   if (num + gnowlistptr - 1) > count(lsortedt) then
  109.     return 
  110.   end if
  111.   set tmp to getAt(lsortedt, num + gnowlistptr - 1)
  112.   set s to tmp / 1000
  113.   set t to tmp - (s * 1000)
  114.   set gnowseries to s
  115.   set gnowtitle to t
  116.   set gnowgroup to 1
  117.   repeat with t = 6 to 11
  118.     set the visible of sprite t to 0
  119.   end repeat
  120.   go("Close Pull Down")
  121. end
  122.  
  123. on setlist
  124.   global nlist, lsortedt, gnowlistptr
  125.   set the text of field "SortWindow" to EMPTY
  126.   repeat with t = 1 to count(lsortedt)
  127.     set the text of field "SortWindow" to the text of field "SortWindow" & getPropAt(lsortedt, t)
  128.   end repeat
  129. end
  130.  
  131. on selectgroup group
  132.   global lseries, gnowseries, gnowtitle, gnowgroup, lblend
  133.   set ls to getAt(lseries, gnowseries)
  134.   set lt to getAt(the ltitle of ls, gnowtitle)
  135.   repeat with g = 1 to count(the lgroup of lt)
  136.     set lg to getAt(the lgroup of lt, g)
  137.     if integer(the pgroup of lg) = group then
  138.       set gnowgroup to g
  139.       return 
  140.     end if
  141.   end repeat
  142. end
  143.  
  144. on buttonanim
  145.   global lseries, gnowseries, gnowtitle, gnowgroup, lenablegroup
  146.   set ls to getAt(lseries, gnowseries)
  147.   set lt to getAt(the ltitle of ls, gnowtitle)
  148.   set lg to getAt(the lgroup of lt, gnowgroup)
  149.   repeat with t = 11 to 22
  150.     set tmp to the blend of sprite t
  151.     set the puppet of sprite t to 1
  152.     if rollOver(t) then
  153.       set the blend of sprite t to 100
  154.       next repeat
  155.     end if
  156.     if tmp > 0 then
  157.       set tmp to tmp - 25
  158.       if tmp < 0 then
  159.         set tmp to 0
  160.       end if
  161.       set the blend of sprite t to tmp
  162.     end if
  163.   end repeat
  164.   updateStage()
  165.   set the puppet of sprite 23 to 1
  166.   if the blend of sprite 20 > 0 then
  167.     set the visible of sprite 23 to 1
  168.   else
  169.     set the visible of sprite 23 to 0
  170.   end if
  171.   repeat with t = 1 to 5
  172.     set the puppet of sprite (30 + t) to 1
  173.     set the puppet of sprite (5 + t) to 1
  174.     if rollOver(30 + t) then
  175.       set the blend of sprite (30 + t) to 100
  176.       set the blend of sprite (5 + t) to 100
  177.       next repeat
  178.     end if
  179.     if the blend of sprite (5 + t) > 0 then
  180.       set the blend of sprite (5 + t) to the blend of sprite (5 + t) - 10
  181.     end if
  182.     if getAt(lenablegroup, t) then
  183.       if the blend of sprite (t + 30) > 0 then
  184.         set the blend of sprite (t + 30) to the blend of sprite (t + 30) - 10
  185.       else
  186.         set the blend of sprite (t + 30) to 100
  187.       end if
  188.       next repeat
  189.     end if
  190.     if the blend of sprite (30 + t) > 0 then
  191.       set the blend of sprite (30 + t) to the blend of sprite (30 + t) - 10
  192.     end if
  193.   end repeat
  194.   if integer(the pgroup of lg) < 6 then
  195.     set the blend of sprite (integer(the pgroup of lg) + 30) to 100
  196.     set the blend of sprite (integer(the pgroup of lg) + 5) to 100
  197.   end if
  198.   if the pcheckbox of lg = "1" then
  199.     set the puppet of sprite 47 to 1
  200.     set tmp to the blend of sprite 47
  201.     set tmp to tmp - 25
  202.     if tmp < 0 then
  203.       set tmp to 0
  204.     end if
  205.     set the blend of sprite 47 to tmp
  206.     if the pcheck of lg = "1" then
  207.       set the blend of sprite 47 to 100
  208.     else
  209.       if rollOver(46) then
  210.         set the blend of sprite 47 to 100
  211.       end if
  212.     end if
  213.   end if
  214. end
  215.  
  216. on soundanim
  217.   repeat with t = 1 to 3
  218.     set the puppet of sprite (39 + t) to 1
  219.     set tmp to the blend of sprite (39 + t)
  220.     if the soundEnabled then
  221.       set tt to 8 - the soundLevel
  222.       if random(tt) = 1 then
  223.         set the blend of sprite (39 + t) to 100
  224.       end if
  225.     end if
  226.     if rollOver(39 + t) then
  227.       set the blend of sprite (39 + t) to 100
  228.       next repeat
  229.     end if
  230.     if tmp > 0 then
  231.       set tmp to tmp - 25
  232.       if tmp < 0 then
  233.         set tmp to 0
  234.       end if
  235.       set the blend of sprite (39 + t) to tmp
  236.     end if
  237.   end repeat
  238.   set the puppet of sprite 43 to 1
  239.   if the soundEnabled then
  240.     set the memberNum of sprite 43 to member "sound on"
  241.   else
  242.     set the memberNum of sprite 43 to member "sound off"
  243.   end if
  244. end
  245.  
  246. on pulldownanim
  247.   repeat with t = 1 to 3
  248.     set the puppet of sprite (t + 17) to 1
  249.     set tmp to the blend of sprite (t + 17)
  250.     if rollOver(t + 17) then
  251.       set the blend of sprite (t + 17) to 100
  252.       next repeat
  253.     end if
  254.     if tmp > 0 then
  255.       set tmp to tmp - 25
  256.       if tmp < 0 then
  257.         set tmp to 0
  258.       end if
  259.       set the blend of sprite (t + 17) to tmp
  260.     end if
  261.   end repeat
  262.   repeat with t = 1 to 10
  263.     set the puppet of sprite (t + 5) to 1
  264.     if rollOver(t + 5) then
  265.       set the visible of sprite (t + 5) to 1
  266.       next repeat
  267.     end if
  268.     set the visible of sprite (t + 5) to 0
  269.   end repeat
  270. end
  271.  
  272. on resetdisp
  273.   repeat with t = 1 to 48
  274.     set the puppet of sprite t to 1
  275.     set the visible of sprite t to 1
  276.     set the puppet of sprite t to 0
  277.   end repeat
  278.   updateStage()
  279. end
  280.